package com.basejace.core.model;

import java.util.List;

import com.basejace.common.model.PubDepartment;
import com.basejace.common.model.PubRole;
import com.basejace.common.model.PubUser;
import com.basejace.common.model.base.BasePubUser;

/**
 * 登录用户的信息
 * @author admin
 *
 */
public class LoginUserBean extends BasePubUser {
	private List<PubRole> roles; //所属的角色
	private String rolsStr;		//所属角色主键字符串，例如   35235235354532,42141234214 表示有两个角色ID
	private List<PubDepartment> departments;  //所属部门
	private String dptStr;		//所属部门主键字符串，例如   35235235354532,42141234214 表示归属两个部门ID
	public LoginUserBean(PubUser user) {
		this._setAttrs(user);
	}

	public List<PubRole> getRoles() {
		return roles;
	}

	public void setRoles(List<PubRole> roles) {
		this.roles = roles;
	}

	public List<PubDepartment> getDepartments() {
		return departments;
	}

	public void setDepartments(List<PubDepartment> departments) {
		this.departments = departments;
	}

	public String getRolsStr() {
		return rolsStr;
	}

	public void setRolsStr(String rolsStr) {
		this.rolsStr = rolsStr;
	}

	public String getDptStr() {
		return dptStr;
	}

	public void setDptStr(String dptStr) {
		this.dptStr = dptStr;
	}
}
